﻿je_hre_internal = {
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	complete = {
		cu:north_german = {
			NOT = { culture_is_discriminated_in = ROOT }
		}
		has_law = law_type:law_state_religion
		has_law = law_type:law_racial_segregation
		has_law = law_type:law_autocracy

		NOT = {
			c:SCA = {
				any_subject_or_below = {
					OR = {
						country_has_primary_culture = cu:north_german
						country_has_primary_culture = cu:south_german
						country_has_primary_culture = cu:rheinish
					}
				}
			}
			c:BRG = {
				any_subject_or_below = {
					OR = {
						country_has_primary_culture = cu:north_german
						country_has_primary_culture = cu:south_german
						country_has_primary_culture = cu:rheinish
					}
				}
			}
		}
	}

	on_complete = {
		#trigger_event = {
		#	id = hre.1
		#}
		custom_tooltip = HRE_success_tt
		set_global_variable = hre_success_1
	}

	fail = {
		has_revolution = yes
	}

	# 12 Years
	timeout = 4380

	invalid = {
		has_law = law_type:law_landed_voting
		has_law = law_type:law_wealth_voting
		has_law = law_type:law_total_separation
	}

	weight = 100
	should_be_pinned_by_default = yes
}	

je_hre_external = {
	icon = "gfx/interface/icons/event_icons/event_military.dds"

	complete = {
		country_or_subject_owns_entire_state_region = STATE_BOHEMIA
		country_or_subject_owns_entire_state_region = STATE_SILESIA
		country_or_subject_owns_entire_state_region = STATE_MORAVIA
		country_or_subject_owns_entire_state_region = STATE_BRANDENBURG
		country_or_subject_owns_entire_state_region = STATE_POMERANIA
		country_or_subject_owns_entire_state_region = STATE_AUSTRIA
		country_or_subject_owns_entire_state_region = STATE_STYRIA
		country_or_subject_owns_entire_state_region = STATE_SLOVENIA
		country_or_subject_owns_entire_state_region = STATE_TYROL
		country_or_subject_owns_entire_state_region = STATE_EAST_SWITZERLAND
		country_or_subject_owns_entire_state_region = STATE_WEST_SWITZERLAND
		country_or_subject_owns_entire_state_region = STATE_BADEN
		country_or_subject_owns_entire_state_region = STATE_WURTTEMBERG
		country_or_subject_owns_entire_state_region = STATE_BAVARIA
		country_or_subject_owns_entire_state_region = STATE_FRANCONIA
		country_or_subject_owns_entire_state_region = STATE_THURINGIA
		country_or_subject_owns_entire_state_region = STATE_SAXONY
		country_or_subject_owns_entire_state_region = STATE_ANHALT
		country_or_subject_owns_entire_state_region = STATE_HANNOVER
		country_or_subject_owns_entire_state_region = STATE_EAST_FRISIA
		country_or_subject_owns_entire_state_region = STATE_WESTPHALIA
		country_or_subject_owns_entire_state_region = STATE_RHINELAND
		country_or_subject_owns_entire_state_region = STATE_PALATINATE
		country_or_subject_owns_entire_state_region = STATE_ALSACE
		country_or_subject_owns_entire_state_region = STATE_HESSE
		country_or_subject_owns_entire_state_region = STATE_NORTH_RHINE
		country_or_subject_owns_entire_state_region = STATE_MECKLENBURG
		country_or_subject_owns_entire_state_region = STATE_SCHLESWIG_HOLSTEIN
	}

	on_complete = {
		#trigger_event = {
		#	id = hre.1
		#}
		set_global_variable = hre_success_2
	}

	fail = {
		has_revolution = yes
	}

	on_fail = {
		set_global_variable = hre_fail
		add_journal_entry = {
			type = je_elbian_confederation 
		}
	}

	# 12 Years
	timeout = 4380

	on_timeout = {
		set_global_variable = hre_fail
		#trigger_event = {
			#id = elbian_confederation.4
		#}
		add_journal_entry = {
			type = je_elbian_confederation 
		}
	}

	invalid = {
		custom_tooltip = {
			text = elbian_confederation_invalid
			NOT = {
				any_scope_state = {
					state_region = {
						is_homeland = cu:north_german
					}
				}
			}
		}
	}

	weight = 100
	should_be_pinned_by_default = yes
}
